<?php
include("conn.php");

$name=$_GET['name'];
$age=$_GET['age'];
$ip=$_SERVER['HTTP_X_FORWARDED_FOR'];
$diangepp=$_GET['diangename'];

if (!$name|!$age){
    echo "202";
    return;
}

$result = $conn->query( "SELECT * FROM gequ WHERE musicname='$name'" );

if ( $result->num_rows > 0 )
    {
        echo "201";
        return;
    }
    
if ($conn->query( "INSERT INTO gequ(musicname,creatr,ip ,name) VALUES('$name','$age','$ip','$diangepp')") === True)
    {
        echo "200";
    }
    
    $conn->close();